<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">
    <link href="assets/css/play.css" rel="stylesheet">
    <title>视频信息管理系统</title>

    <!-- Bootstrap core CSS -->
    <link href="assets/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="assets/css/offcanvas.css" rel="stylesheet">
    <link href="assets/css/style.css" rel="stylesheet">
    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]>
    <script src="assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="assets/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>


<body>
<!--导航栏-->
<nav class="navbar navbar-fixed-top navbar-inverse">
    <div class="container-fluid">

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">

                <li><a href="index.php?c=index&m=index">首页</a></li>
                <?php
                foreach($data['list'] as $list){
                    echo "<li><a href=index.php?c=index&m=listPage&tid={$list['tid']}>".$list['typename']."</a></li>";
                }
                ?>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<!--导航栏end-->

<!-- /.navbar -->


<div class="container"><!--最大div-->
    <div class="row row-offcanvas row-offcanvas-right">


        <div class="col-xs-12 col-sm-9"><!--xx专栏div-->
            <div class="row">
                <div class="col-xs-12 col-lg-12 mlist">

                    <h2><?php echo $data['type']['typename']?>专栏</h2>

                    <ul class="list-inline row text-center">
                        <?php
                        foreach ($data['content'] as $videoInfo){
                            ?>
                        <li class="col-xs-6 col-lg-3">
                            <img src="images/<?php echo $videoInfo['pic'];?>" class="responsive img-thumbnail"/>
                            <p><a href="index.php?c=index&m=detail&vid=<?php echo $videoInfo['vid'];?>"><?php echo $videoInfo['videoname'];?></a></p>
                        </li>
                        <?php
                        }
                        ?>
                    </ul>

                </div>
            </div>
        </div><!--end xx专栏div-->



        <div class="col-xs-6 col-sm-3 sidebar-offcanvas"><!--div 3-->
            <div class="list-group text-center" id="sidebar"><!--div 4-->

                <h2 style="color:white;" >下载排行</h2>
                <ul class="list-inline row text-center">
                    <?php
                    foreach ($data['rankList'] as $rankList){
                        ?>
                        <li class="col-xs-12 col-lg-6">
                            <img src="images/<?php echo $rankList['pic']; ?>" class="responsive img-thumbnail"/>

                            <p><a href="index.php?c=index&m=detail&vid=<?php echo $rankList['vid'];?>"><?php echo $rankList['videoname']; ?></a>
                            </p>
                        </li>
                        <?php
                    }
                    ?>
                </ul>

            </div><!--end 4-->
        </div><!--end 3-->


    </div><!--end 2-->
</div><!--end 1-->
<!--/.container-->
<hr>

<footer>
    <p>&copy; Daniel 2016</p>
</footer>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>

<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="assets/js/ie10-viewport-bug-workaround.js"></script>

<script src="offcanvas.js"></script>
</body>
</html>
